<?php
/*
 * Created on 11-05-2012
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */

class DataGenerator extends AppModel {
	public $useTable = false;
	
	public $name = 'DataGenerator';
	
	public $validate = array();
	
	public function setValidate() {
		$validate1 = array(
			'howMany'	=> array(
				'Puste'	=> array(
					'rule'=> 'notEmpty',
					'message'=> 'Ilość nie może być pusta'
				),
				'Nie liczba'=> array(
					'rule'		=> 'numeric',
					'message'	=> 'Ilość musi być liczbą'
				)
			)
		);
		$this->validate = $validate1;
		return $this->validates();
	}
}
?>
